package BookManagement.service;

import BookManagement.domain.Book;

import java.util.HashMap;
import java.util.List;

public interface BookService {
    //ISBN查书
    public Book findByISBN(String ISBN);
    //查所有书
    public List<Book> findAllBooks(HashMap<String,Object> map);
    //查书籍数量
    public int getTotalBooks();
    public int getTotalBooksBy(String str);
    //书名或作者查书
    public List<Book> findByBookNameOrAuthor(HashMap<String,Object> map);
    //添加书籍
    public int addBook(Book b);
    //根据ISBN删除书籍
    public int deleteBookByISBN(String ISBN);
    //更新书籍
    public int updateBook(Book b);
    //更新书籍数量
    public int updateBookCounts(HashMap<String,Object> map);


}
